all:
	echo running...
	$(MAKE) -C eth-core-infrastructure all
	$(MAKE) -C eth-core-infrastructure install
	$(MAKE) -C tc8-protocols-coverage all
	$(MAKE) -C tc8-protocols-coverage install
clean:
	echo clean..
	$(MAKE) -C eth-core-infrastructure clean
	$(MAKE) -C tc8-protocols-coverage clean

DUT:
	echo Updating DUT...
	sshpass -p rootroot ssh -o StrictHostKeyChecking=no -l pi 169.254.159.220 "sudo pkill DUT; rm -rf /home/pi/control-channel"
	sshpass -p "rootroot" scp -r ./eth-core-infrastructure/control-channel pi@169.254.159.220:/home/pi
	sshpass -p rootroot ssh -o StrictHostKeyChecking=no -l pi 169.254.159.220 "cd /home/pi/control-channel ; make clean ; make ; make install ; DUT&"
	echo Please check that everything is ok

remove:
	echo removing old files
	rm -rf tc8-protocols-coverage
	rm -rf eth-core-infrastructure
	rm -rf ethernet-tool
